using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace rocketjump
{
    public class BackgroundSprite : Sprite
    {
        public float parallex = 0.1f;
        public override void Draw(Camera cam)
        {
            GraphicsHelper.Draw(texture, position - (cam.Position - (cam.viewPort / 2)) * parallex, scale, rotation);
        }

        public override void Update(float tdelta)
        {

        }

        public new void SetTexture(string texture)
        {
            this.texture = GraphicsHelper.LoadTexture(texture);
        }
    }
}
